/**
 * Copyright 2011 HNB. All rights reserved.
 * HNB PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package my.hnb.android.dto;

import java.io.Serializable;

import android.database.Cursor;

/**
 * Thong tin mot bai nhac
 * @author BANGHN
 */
@SuppressWarnings("serial")
public class SongDTO implements Serializable{
	//ma bai hat
	public long songNumber;
	//ten bai hat
	public String songName;
	//favorite
	public int favorite = 0;
	//loi ngan gon
	public String shortLyric;
	public SongDTO(){
		
	}

	/**
	 * Methods descriptions
	 * @author BANGHN
	 * @param c
	 */
	public void parseSongInfo(Cursor c) {
		if(c != null){
			songNumber = c.getLong(c.getColumnIndex("SONG_NUMBER"));
			songName = c.getString(c.getColumnIndex("SONG_NAME"));
			shortLyric = c.getString(c.getColumnIndex("SHORT_LYRIC"));
			favorite = c.getInt(c.getColumnIndex("FAVORITE"));
		}
	}
	
	public void parseSongTitle(Cursor c) {
		if(c != null){
			songNumber = c.getLong(c.getColumnIndex("SONG_NUMBER"));
			songName = c.getString(c.getColumnIndex("SONG_NAME"));
		}
	}
}
